#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>

class MyWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MyWidget(QWidget *parent = nullptr);

private:
    void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE
    {
        *m_pNumber = 0x999888;
        printf("*m_pNumber=%d\n", *m_pNumber);
        QWidget::paintEvent(event);
    }

signals:

public slots:

public:
    int* m_pNumber;
    int  m_number;
};

#endif // MYWIDGET_H
